/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/12/2010                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define SubCategoryResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class SubCategoryResult
    {
        #region fields
        private int subCategoryId;
        private string categoryId;
        private string subCategoryName;
        private string subCategoryCode;
        private string description;
        private Boolean isPublished;
        private int order;
        private string createdBy;
        private DateTime createdDate;
        private string lastUpdatedBy;
        private DateTime lastUpdatedDate;
        #endregion fields

        #region properties
        /// <summary>
        /// Define SubCategoryId Property.
        /// </summary>
        public int SubCategoryId
        {
            get { return this.subCategoryId; }
            set { this.subCategoryId = value; }
        }
        /// <summary>
        /// Define CategoryId Property.
        /// </summary>
        public string CategoryId
        {
            get { return this.categoryId; }
            set { this.categoryId = value; }
        }
        /// <summary>
        /// Define SubCategoryName Property.
        /// </summary>
        public string SubCategoryName
        {
            get { return this.subCategoryName; }
            set { this.subCategoryName = value; }
        }
        /// <summary>
        /// Define SubCategoryCode Property.
        /// </summary>
        public string SubCategoryCode
        {
            get { return this.subCategoryCode; }
            set { this.subCategoryCode = value; }
        }
        /// <summary>
        /// Define Description Property.
        /// </summary>
        public string Description
        {
            get { return this.description; }
            set { this.description = value; }
        }
        /// <summary>
        /// Define IsPublished Property.
        /// </summary>
        public Boolean IsPublished
        {
            get { return this.isPublished; }
            set { this.isPublished = value; }
        }
        /// <summary>
        /// Define Order Property.
        /// </summary>
        public int Order
        {
            get { return this.order; }
            set { this.order = value; }
        }
        /// <summary>
        /// Define CreatedBy Property.
        /// </summary>
        public string CreatedBy
        {
            get { return this.createdBy; }
            set { this.createdBy = value; }
        }
        /// <summary>
        /// Define CreatedDate Property.
        /// </summary>
        public DateTime CreatedDate
        {
            get { return this.createdDate; }
            set { this.createdDate = value; }
        }
        /// <summary>
        /// Define LastUpdatedBy Property.
        /// </summary>
        public string LastUpdatedBy
        {
            get { return this.lastUpdatedBy; }
            set { this.lastUpdatedBy = value; }
        }
        /// <summary>
        /// Define LastUpdatedDate Property.
        /// </summary>
        public DateTime LastUpdatedDate
        {
            get { return this.lastUpdatedDate; }
            set { this.lastUpdatedDate = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for SubCategoryResultResult Object.
        /// </summary>
        public SubCategoryResult()
        {
            this.subCategoryId = int.MinValue;
            this.categoryId = string.Empty;
            this.subCategoryName = string.Empty;
            this.subCategoryCode = string.Empty;
            this.description = string.Empty;
            this.isPublished = true;
            this.order = int.MinValue;
            this.createdBy = string.Empty;
            this.createdDate = DateTime.MinValue;
            this.lastUpdatedBy = string.Empty;
            this.lastUpdatedDate = DateTime.MinValue;
        }
        /// <summary>
        /// Define constructor for SubCategoryResultResult Object.
        /// </summary>
        public SubCategoryResult(int subCategoryId,
                    string categoryId,
                    string subCategoryName,
                    string subCategoryCode,
                    string description,
                    Boolean isPublished,
                    int order,
                    string createdBy,
                    DateTime createdDate,
                    string lastUpdatedBy,
                    DateTime lastUpdatedDate)
        {
            this.subCategoryId = subCategoryId;
            this.categoryId = categoryId;
            this.subCategoryName = subCategoryName;
            this.subCategoryCode = subCategoryCode;
            this.description = description;
            this.isPublished = isPublished;
            this.order = order;
            this.createdBy = createdBy;
            this.createdDate = createdDate;
            this.lastUpdatedBy = lastUpdatedBy;
            this.lastUpdatedDate = lastUpdatedDate;
        }
        #endregion constructor
    }
}